var temperatureHours = [];
var temperatureValues = [];
var umidityHours = [];
var umidityValues = [];
var windpowerHours = [];
var windpowerValues = [];
var airData = [];

function ajaxInit() {
    $.ajax({
        url: myUrl[0],
        contentType: "application/json",
        type: "GET",
        async: false,
        success: function (result) {
            try {
                var firstData = result.data.info;
                //第一排天气=========================================================
                var str = "";
                for (var i = 0; i < firstData.length; i++) {
                    var temp = firstData[i]
                    if (i != 0) {
                        str += '<div class="solids" style="margin-left:2%;"></div>';
                    }
                    str += '<ul class="text2">';
                    str += '<li class="weekDays"><div class="dates">' + temp.date + '</div><div class="weeks">' + temp.dateweek + '</div></li>';
                    // str += '<li class="date">' + temp.dateweek + '</li>';
                    str += '<li class="weatherPic">';
                    str += '<img src="' + temp.dayPictureUrl + '" alt="" style="margin-right: 3%;">';
                    str += '<img src="' + temp.nightPictureUrl + '" alt="" style="margin-left: 3%;">';
                    str += '</li>';
                    str += '<li class="weather">' + temp.weather + '</li>';
                    str += '<li class="temporary">' + temp.temperature + '</li>';
                    str += '<li class="wind">' + temp.wind + '</li>';
                    if (temp.type == 0 && i == 2) {
                        str += '<li class="quality"><div class="airQuality">实时空气质量：</div><div class="googOrBad">' + result.data.pm25 + '</div></li>';
                    }
                    str += '</ul>';

                }
                console.log(str)
                document.getElementById("firstRow").innerHTML = str;
            } catch (err) {
                console.log("<<<<<<<<<<<我要和太阳肩并肩>>>>>>>>>>>>>>>" + err)
            }
            //第二排天气=========================================================
            try {
                var secondData = result.data.temperature;
                for (var i = secondData.length - 1; i >= 0; i--) {
                    temperatureHours[secondData.length - 1 - i] = secondData[i].time.split(' ')[0].split("-")[2] + "日" + secondData[i].time.split(' ')[1] + ":00";
                }
                for (var i = secondData.length - 1; i >= 0; i--) {
                    temperatureValues[secondData.length - 1 - i] = secondData[i].total;
                }
            } catch (err) {
                console.log("<<<<<<<<<<<我要和太阳肩并肩>>>>>>>>>>>>>>>" + err)
            }

            /*try{
                //气压
                var humidityData =result.data.humidity;
                for (var i = humidityData.length-1; i>=0; i--) {
                    umidityHours[humidityData.length-1-i]=humidityData[i].time.split(' ')[0].split("-")[2] +"日"+humidityData[i].time.split(' ')[1]+":00";
                }


                for (var i = humidityData.length-1; i>=0; i--) {
                    temperatureValues[humidityData.length-1-i] =humidityData[i].total;
                }
            }catch(err){
                 console.log("<<<<<<<<<<<我要和太阳肩并肩>>>>>>>>>>>>>>>"+err)
            }	*/

            try {
                //湿度
                var humidityData = result.data.humidity;
                for (var i = humidityData.length - 1; i >= 0; i--) {
                    umidityHours[humidityData.length - 1 - i] = humidityData[i].time.split(' ')[0].split("-")[2] + "日" + humidityData[i].time.split(' ')[1] + ":00";
                }


                for (var i = humidityData.length - 1; i >= 0; i--) {
                    umidityValues[humidityData.length - 1 - i] = humidityData[i].total;
                }
            } catch (err) {
                console.log("<<<<<<<<<<<我要和太阳肩并肩>>>>>>>>>>>>>>>" + err)
            }


            // try{
            //     //降水
            //     var humidityData =result.data.humidity;
            //     for (var i = humidityData.length-1; i>=0; i--) {
            //         umidityHours[humidityData.length-1-i]=humidityData[i].time.split(' ')[0].split("-")[2] +"日"+humidityData[i].time.split(' ')[1]+":00";
            //     }
            //
            //
            //     for (var i = humidityData.length-1; i>=0; i--) {
            //         temperatureValues[humidityData.length-1-i] =humidityData[i].total;
            //     }
            // }catch(err){
            //      console.log("<<<<<<<<<<<我要和太阳肩并肩>>>>>>>>>>>>>>>"+err)
            // }

            try {
                //风力

                var windpowerData = result.data.windpower;
                for (var i = windpowerData.length - 1; i >= 0; i--) {
                    windpowerHours[windpowerData.length - 1 - i] = windpowerData[i].time.split(' ')[0].split("-")[2] + "日" + windpowerData[i].time.split(' ')[1] + ":00";
                }


                for (var i = windpowerData.length - 1; i >= 0; i--) {
                    windpowerValues[windpowerData.length - 1 - i] = windpowerData[i].total;
                }
            } catch (err) {
                console.log("<<<<<<<<<<<我要和太阳肩并肩>>>>>>>>>>>>>>>" + err)
            }


            try {
                //空气指数  [{value: '3', name: '优40'}]
                /*var le=[1,2,3,4,5,6,7,8,9,10,11]*/
                var per = parseInt(result.data.pm25.split("|"));
                //var t ;
                /* if(per<50)
                   t=randomNum(0,4);
                 else if(per>=50&&per<100)
                 t=randomNum(5,7);
                 else if(per>=100)
                 t=randomNum(8,10);*/

                airData[0] = {
                    "value": per,
                    "name": result.data.pm25
                }
            } catch (err) {
                console.log("<<<<<<<<<<<我要和太阳肩并肩>>>>>>>>>>>>>>>" + err)
            }


            /*try{
                //空气指数  [{value: '3', name: '优40'}]
                //var le=[1,2,3,4,5,6,7,8,9,10,11]
                var per=parseInt(result.data.pm25.split("|"));
                var t ;
                 if(per<50)
                   t=randomNum(0,4);
                 else if(per>=50&&per<100)
                 t=randomNum(5,7);
                 else if(per>=100)
                 t=randomNum(8,10);

                airData[0]={
                    "value":le[t],
                    "name":result.data.pm25
                }
            }catch(err){
                console.log("<<<<<<<<<<<我要和太阳肩并肩>>>>>>>>>>>>>>>"+err)
            }		*/


            try {
                //空气指数  [{value: '3', name: '优40'}]
                var strArr = ["imags1", "imags2", "imags3", "imags4", "imags5", "imags6"];
                var tiptData = result.data.tipt;
                /*var imgUrl=["../publicStyle/image/baseDataAnalysis/weather/weather_3.png",
                            "../publicStyle/image/baseDataAnalysis/weather/weather_01.png",
                            "../publicStyle/image/baseDataAnalysis/weather/weather_6.png",
                            "../publicStyle/image/baseDataAnalysis/weather/weather_5.png",
                            "../publicStyle/image/baseDataAnalysis/weather/weather_4.png",
                            "../publicStyle/image/baseDataAnalysis/weather/weather_7.png"
                           ];*/
                for (var i = 0; i < tiptData.length; i++) {
                    var temp = tiptData[i];
                    var str = "";
                    var imgUrl;
                    /* switch(temp.tipt){
                         case "运动指数":
                         str+='<div style="width:258px; height:85px; background-image: url('+imgUrl[0]+');">'
                         break;
                         case "紫外线强度指数":
                         str+='<div style="width:258px; height:85px; background-image: url('+imgUrl[1]+');">'
                         break;
                         case "穿衣指数":
                         str+='<div style="width:258px; height:85px; background-image: url('+imgUrl[2]+');">'
                         break;
                         case "洗车指数":
                         str+='<div style="width:258px; height:85px; background-image: url('+imgUrl[3]+');">'
                         break;
                         case "感冒指数":
                         str+='<div style="background-image: url('+imgUrl[4]+');">'
                         break;
                         default:
                         str+='<div style="background-image: url('+imgUrl[5]+');">'
                         break;

                     }<span style="display:inline-block; position:absolute; margin-left: 130px; margin-top:-50px;">jiaojkldf</span>*/

                    str += '<ul class="text2" id="ul5">';
                    str += '<li><span style="display:inline-block; position:absolute; margin-left: 130px; margin-top:-40px; color:#fff;">' + temp.title + ":" + temp.zs + '</span></li>';
                    str += '</ul>';
                    str += '</div>';
                    document.getElementById(strArr[i]).innerHTML += str;
                }
            } catch (err) {
                console.log("<<<<<<<<<<<我要和太阳肩并肩>>>>>>>>>>>>>>>" + err)
            }


            try {
                //景区天气[{value: '3', name: '优40'}]
                var tiptData = result.data.scenicWeather;
                var str = '';
                for (var i = 0; i < 5; i++) {
                    var temp = tiptData[i];
                    str += '<ul class="list">'
                    str += '<li><img src="' + temp.dayPictureUrl + '" style="width:18px; height:18px;">'
                    str += '<img src="' + temp.nightPictureUrl + '" style="width:18px; height:18px;"></li>';
                    str += '<li>' + temp.area + '</li>';
                    str += '<li>' + temp.wind + '</li>';
                    str += '<li>' + temp.weather + temp.temperature + '</li>';
                    str += '</ul>';
                }
                document.getElementById("lastDiv").innerHTML = str;
            } catch (err) {
                console.log("<<<<<<<<<<<我要和太阳肩并肩>>>>>>>>>>>>>>>" + err)
            }
        }
    });
}

ajaxInit();

//生成从minNum到maxNum的随机数
function randomNum(minNum, maxNum) {
    switch (arguments.length) {
        case 1:
            return parseInt(Math.random() * minNum + 1, 10);
            break;
        case 2:
            return parseInt(Math.random() * (maxNum - minNum + 1) + minNum, 10);
            break;
        default:
            return 0;
            break;
    }
}


var holidayDataAnalysis = {
    init: function () {
        try {
            var that = this
            that.beyondFourASeceny()
            that.sweepingDayAccount()
            that.springFestivalAccount()
            that.laborDayAccount()
            that.festivalAccount()
            that.middleAutumuFestival()
            that.nationalDay()
            that.beyondFourASecenyLine()
            that.sweepingDayAccountLine()
            that.laborDayAccountLine()
            that.springFestivalAccountLine()
            that.festivalAccountLine()
            that.middleAutumuFestivalLine()
            that.nationalDayLine()
            that.lijiangmap()
        } catch (err) {
            console.log("<<<<<<<<<<<我要和太阳肩并肩>>>>>>>>>>>>>>>" + err)
        }
    },
    echartsBar(doms) {
        var myChart = doms;
        option = {
            color: ['#3398DB'],
            tooltip: {
                trigger: 'axis',
                axisPointer: {            // 坐标轴指示器，坐标轴触发有效
                    type: 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                }
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis: [
                {
                    type: 'category',
                    data: ['2014', '2015', '2016', '2017', '2018'],
                    axisTick: {
                        alignWithLabel: true
                    }
                }
            ],
            yAxis: [
                {
                    type: 'value',
                    name: '单位:万人'
                }
            ],
            series: [
                {
                    name: '直接访问',
                    type: 'bar',
                    barWidth: '60%',
                    itemStyle: {
                        color: "red",
                        barBorderRadius: [5, 5, 0, 0]
                    },
                    data: [200, 334, 690, 330, 800]
                }
            ]
        };
        myChart.setOption(option);
    },
    echartsLine(doms) {
        var myChart = doms;
        option = {
            xAxis: {
                type: 'category',
                boundaryGap: false,
                data: ['2014', '2015', '2016', '2017', '2018'],
            },
            yAxis: {
                type: 'value',
                name: '单位:万人'
            },
            series: [{
                data: [200, 334, 690, 330, 800],
                type: 'line',
                areaStyle: {}
            }]
        };

        myChart.setOption(option);
    },
    //1*1
    beyondFourASeceny() {
        var that = this
        var dom = echarts.init(document.getElementById('beyondFourASeceny'));
        that.echartsBar(dom)
    },
    beyondFourASecenyLine() {
        var that = this
        var dom = echarts.init(document.getElementById('beyondFourASecenyLine'));
        that.echartsLine(dom)
    },
    //2*1
    sweepingDayAccount() {
        var that = this
        var dom = echarts.init(document.getElementById('sweepingDayAccount'));
        that.echartsBar(dom)
    },
    sweepingDayAccountLine() {
        var that = this
        var dom = echarts.init(document.getElementById('sweepingDayAccountLine'));
        that.echartsLine(dom)
    },
    //1*3
    springFestivalAccount() {
        var that = this
        var dom = echarts.init(document.getElementById('springFestivalAccount'));
        that.echartsBar(dom)
    },
    springFestivalAccountLine() {
        var that = this
        var dom = echarts.init(document.getElementById('springFestivalAccountLine'));
        that.echartsLine(dom)
    },
    //2*3
    laborDayAccount() {
        var that = this
        var dom = echarts.init(document.getElementById('laborDayAccount'));
        that.echartsBar(dom)
    },
    laborDayAccountLine() {
        var that = this
        var dom = echarts.init(document.getElementById('laborDayAccountLine'));
        that.echartsLine(dom)
    },
    //footer 1
    festivalAccount() {
        var that = this
        var dom = echarts.init(document.getElementById('festivalAccount'));
        that.echartsBar(dom)
    },
    festivalAccountLine() {
        var that = this
        var dom = echarts.init(document.getElementById('festivalAccountLine'));
        that.echartsLine(dom)
    },
    // footer 2
    middleAutumuFestival() {
        var that = this
        var dom = echarts.init(document.getElementById('middleAutumuFestival'));
        that.echartsBar(dom)
    },
    middleAutumuFestivalLine() {
        var that = this
        var dom = echarts.init(document.getElementById('middleAutumuFestivalLine'));
        that.echartsLine(dom)
    },
    // footer 3
    nationalDay() {
        var that = this
        var dom = echarts.init(document.getElementById('nationalDay'));
        that.echartsBar(dom)
    },
    nationalDayLine() {
        var that = this
        var dom = echarts.init(document.getElementById('nationalDayLine'));
        that.echartsLine(dom)
    },
    //    map
    lijiangmap() {
        alert(999)
        var myChart = echarts.init(document.getElementById('lijiangmap'));
        var map = {
            "type": "FeatureCollection",
            "features": [
                {
                    "type": "Feature",
                    "properties": {"name": "古城区", "id": "530702"},
                    "geometry": {
                        "type": "MultiPolygon",
                        "coordinates": [[[[100.357345, 26.603843], [100.369537382813, 26.6072658515625], [100.360767851563, 26.6160353828126], [100.341790800781, 26.6082888007812], [100.332899199219, 26.6293971992188], [100.301790800781, 26.6382888007813], [100.290985136719, 26.651782453125], [100.237530546875, 26.6451345039063], [100.24431765625, 26.6997096992188], [100.200845976563, 26.694301984375], [100.156361113281, 26.6210622382813], [100.139251738281, 26.6073610664063], [100.122345, 26.6094655585938], [100.108267851563, 26.6077150703125], [100.082899199219, 26.6393971992187], [100.077345, 26.643843], [100.082542753906, 26.6737184882813], [100.101790800781, 26.7193971992188], [100.15375125, 26.7284377265625], [100.202899199219, 26.7582888007813], [100.211790800781, 26.7893971992187], [100.261790800781, 26.8002150703125], [100.252899199219, 26.8393971992188], [100.231790800781, 26.8482888007813], [100.212899199219, 26.8593971992188], [100.188648710938, 26.869614484375], [100.162899199219, 26.9134206367188], [100.173062773438, 26.9431081367188], [100.263914824219, 26.9318068671875], [100.282899199219, 26.9982888007813], [100.292767363281, 27.0882888007813], [100.320008574219, 27.076255109375], [100.335538359375, 27.0393971992188], [100.349600859375, 27.07550315625], [100.340479765625, 27.148843], [100.343587675781, 27.173843], [100.340628691406, 27.197641828125], [100.382127714844, 27.2094924140626], [100.392345, 27.2082204414063], [100.407098417969, 27.2100563789063], [100.442159453125, 27.1819802070313], [100.447345, 27.1638430000001], [100.455513945313, 27.1320119453125], [100.476058378906, 27.1178273750001], [100.487345, 27.073843], [100.461663847656, 27.0593239570313], [100.462967558594, 27.0488430000001], [100.459859648438, 27.0238649726563], [100.436886015625, 27.0054689765625], [100.455601835938, 26.9399294257813], [100.441722441406, 26.8288454414063], [100.445089140625, 26.8017751289063], [100.379039335938, 26.7828908515625], [100.39373171875, 26.7049831367188], [100.391695585938, 26.6886257148438], [100.403861113281, 26.6460256171876], [100.401666289063, 26.6283888984375], [100.428133574219, 26.6071950507813], [100.407366972656, 26.5718679023438], [100.397345, 26.563843], [100.377816191406, 26.5731594062501], [100.353873320313, 26.5632912421875], [100.364449492188, 26.588950421875], [100.357345, 26.603843]], [[100.367345, 27.0538430000001], [100.363922148438, 27.0660353828126], [100.355152617188, 27.0572658515625], [100.367345, 27.0538430000001]]]]
                    }
                },
                {
                    "type": "Feature",
                    "properties": {"name": "华坪县", "id": "530723"},
                    "geometry": {
                        "type": "MultiPolygon",
                        "coordinates": [[[[101.077345, 26.813843], [101.089537382813, 26.8104201484375], [101.080767851563, 26.8016506171876], [101.077345, 26.813843]]], [[[101.077345, 26.813843], [101.065152617188, 26.8172658515625], [101.073922148438, 26.8260353828125], [101.077345, 26.813843]]], [[[101.102132597656, 26.9527712226563], [101.111788359375, 26.926968], [101.131429472656, 26.9397585273438], [101.160203886719, 26.9479274726563], [101.172074003906, 26.91620628125], [101.182345, 26.9310842109375], [101.198992949219, 26.9069704414063], [101.219144316406, 26.9114870429688], [101.260601835938, 26.8940749335938], [101.267345, 26.9038430000001], [101.357105742188, 26.8946877265626], [101.395401640625, 26.845786359375], [101.368980742188, 26.7738356757813], [101.38271609375, 26.74921409375], [101.396102324219, 26.7192140937501], [101.41271609375, 26.7284719062501], [101.422669707031, 26.7400221992188], [101.454464140625, 26.7374684882813], [101.450382109375, 26.7882839179688], [101.469783964844, 26.7898415351563], [101.503023710938, 26.7690212226563], [101.491693144531, 26.7487136054688], [101.497345, 26.7438430000001], [101.49298953125, 26.73819846875], [101.446434355469, 26.7022658515625], [101.468631621094, 26.6851296210938], [101.477345, 26.6738430000001], [101.459893828125, 26.6388600898438], [101.467257109375, 26.6237844062501], [101.457345, 26.603843], [101.393985625, 26.6000856757813], [101.400897246094, 26.5456935859376], [101.413336210938, 26.5517678046875], [101.421353789063, 26.5359181953125], [101.433580351563, 26.5418874335938], [101.442374296875, 26.5114162421875], [101.457345, 26.503843], [101.451517363281, 26.4669899726563], [101.481422148438, 26.4421486640626], [101.441883574219, 26.4093044257813], [101.428270292969, 26.3929177070313], [101.417345, 26.383843], [101.41298953125, 26.3894875312501], [101.376143828125, 26.39819846875], [101.33951296875, 26.3761037421875], [101.221185332031, 26.356001203125], [101.187345, 26.3638430000001], [101.182899199219, 26.3893971992188], [101.166239042969, 26.4027370429688], [101.150863066406, 26.4219362617188], [101.154388457031, 26.45026878125], [101.087913847656, 26.4906447578125], [101.070863066406, 26.5119362617188], [101.07388796875, 26.5362526679687], [101.024014921875, 26.550512921875], [100.987345, 26.603843], [100.999439726563, 26.6121950507812], [100.991224394531, 26.648843], [100.995557890625, 26.6681716132813], [100.977862578125, 26.6803908515625], [101.006654082031, 26.7002712226563], [101.021429472656, 26.7397585273438], [101.066844511719, 26.7656813789063], [101.12720828125, 26.7521486640625], [101.118255644531, 26.7920900703125], [101.101429472656, 26.8179274726563], [101.083260527344, 26.8672145820313], [101.10422, 26.899399640625], [101.062161894531, 26.9151369453125], [101.043260527344, 26.9376613593751], [101.102132597656, 26.9527712226563]]]]
                    }
                },
                {
                    "type": "Feature",
                    "properties": {"name": "宁蒗彝族自治县", "id": "530724"},
                    "geometry": {
                        "type": "MultiPolygon",
                        "coordinates": [[[[101.257345, 26.953843], [101.260767851563, 26.9660353828125], [101.269537382813, 26.9572658515626], [101.257345, 26.953843]]], [[[101.257345, 26.953843], [101.260704375, 26.9172023750001], [101.267345, 26.9038430000001], [101.260601835938, 26.8940749335938], [101.219144316406, 26.9114870429688], [101.198992949219, 26.9069704414063], [101.182345, 26.9310842109375], [101.172074003906, 26.91620628125], [101.160203886719, 26.9479274726563], [101.131429472656, 26.9397585273438], [101.111788359375, 26.926968], [101.102132597656, 26.9527712226563], [101.043260527344, 26.9376613593751], [101.062161894531, 26.9151369453125], [101.10422, 26.899399640625], [101.083260527344, 26.8672145820313], [101.101429472656, 26.8179274726563], [101.118255644531, 26.7920900703125], [101.12720828125, 26.7521486640625], [101.066844511719, 26.7656813789063], [101.021429472656, 26.7397585273438], [101.006654082031, 26.7002712226563], [100.977862578125, 26.6803908515625], [100.995557890625, 26.6681716132813], [100.991224394531, 26.648843], [100.999439726563, 26.6121950507812], [100.987345, 26.603843], [100.921883574219, 26.5993044257813], [100.902244902344, 26.5880568671875], [100.882806425781, 26.6053688789063], [100.912806425781, 26.6183815742188], [100.941329375, 26.6347170234375], [100.951883574219, 26.6608864570313], [100.872445097656, 26.6483229804688], [100.859874296875, 26.6496047187501], [100.864298125, 26.6930055976563], [100.888270292969, 26.7129177070313], [100.915128203125, 26.7452516914063], [100.901803007813, 26.7685207343751], [100.903782988281, 26.7879494453126], [100.877977324219, 26.8238063789063], [100.814854765625, 26.806157453125], [100.802806425781, 26.7783815742188], [100.78693484375, 26.7651955390625], [100.730023222656, 26.8010597968751], [100.732899199219, 26.8292848945313], [100.687730742188, 26.8393019843751], [100.65584109375, 26.8776930976563], [100.673038359375, 26.9392043281251], [100.643240996094, 26.9521291328126], [100.673053007813, 26.9768923164063], [100.670677519531, 27.0002028632813], [100.627257109375, 26.99577659375], [100.612806425781, 26.9783815742188], [100.607345, 26.9738430000001], [100.603922148438, 26.9860353828125], [100.595152617188, 26.9772658515625], [100.607345, 26.9738430000001], [100.613817167969, 26.9590822578125], [100.61093875, 26.948843], [100.615885039063, 26.9312429023438], [100.576156035156, 26.9200783515626], [100.567345, 26.9338430000001], [100.590069609375, 26.9378493476563], [100.572906523438, 26.9468410468751], [100.567345, 26.9338430000001], [100.528663359375, 26.9494240546875], [100.55298953125, 26.96819846875], [100.56170046875, 26.983921125], [100.522135039063, 26.9780739570313], [100.475833769531, 26.9915724921875], [100.503148222656, 27.0284133125], [100.501522246094, 27.0394142890625], [100.524266386719, 27.0487233710938], [100.49170046875, 27.0681984687501], [100.487345, 27.073843], [100.476058378906, 27.1178273750001], [100.455513945313, 27.1320119453125], [100.447345, 27.1638430000001], [100.472899199219, 27.1682888007813], [100.491790800781, 27.1793971992188], [100.519932890625, 27.191255109375], [100.5383996875, 27.2350807929688], [100.521790800781, 27.2782888007813], [100.505577421875, 27.3532302070313], [100.525303984375, 27.4045485664063], [100.458331328125, 27.4190383125], [100.427498808594, 27.4922096992188], [100.453001738281, 27.558559796875], [100.444334746094, 27.628247296875], [100.431790800781, 27.6382888007812], [100.422899199219, 27.6593971992188], [100.407142363281, 27.6720143867188], [100.413699980469, 27.724731671875], [100.377345, 27.753843], [100.381519804688, 27.7796681953125], [100.403170195313, 27.8080178046875], [100.414991484375, 27.8528249335938], [100.443441191406, 27.8708888984375], [100.503170195313, 27.8496681953125], [100.519244414063, 27.8272414375001], [100.532965117188, 27.8299538398438], [100.547345, 27.8098903632812], [100.561519804688, 27.8296681953126], [100.603170195313, 27.8580178046875], [100.622359648438, 27.9077712226563], [100.676732207031, 27.9242897773438], [100.703428984375, 27.8893288398438], [100.7007434375, 27.8757424140626], [100.717345, 27.863843], [100.70298953125, 27.8273244453125], [100.716510039063, 27.7976442695313], [100.772095976563, 27.7547389960938], [100.783153105469, 27.6896511054688], [100.84369265625, 27.6793679023437], [100.831170683594, 27.658608625], [100.843519316406, 27.649077375], [100.824100371094, 27.6168849921876], [100.852345, 27.621059796875], [100.86170046875, 27.5981984687501], [100.900584746094, 27.5457521796876], [100.905301542969, 27.5138430000001], [100.901605253906, 27.488843], [100.903084746094, 27.478843], [100.899744902344, 27.4562429023438], [100.935797148438, 27.4779885078125], [100.954327421875, 27.4472658515626], [100.950667753906, 27.4224929023437], [100.96170046875, 27.4081984687501], [100.97298953125, 27.39948753125], [101.00170046875, 27.35819846875], [101.015811796875, 27.3473073554688], [101.011549101563, 27.3184523750001], [101.02298953125, 27.29948753125], [101.045413847656, 27.2140554023438], [101.077345, 27.1947951484375], [101.109715605469, 27.214321515625], [101.16298953125, 27.19948753125], [101.167345, 27.1638430000001], [101.149998808594, 27.1197194648438], [101.154007597656, 27.0925954414063], [101.138043242188, 27.0237013984376], [101.22298953125, 26.98948753125], [101.23170046875, 26.95819846875], [101.257345, 26.953843]], [[100.865152617188, 26.8372658515626], [100.877345, 26.833843], [100.873922148438, 26.8460353828126], [100.865152617188, 26.8372658515626]], [[101.077345, 26.813843], [101.080767851563, 26.8016506171876], [101.089537382813, 26.8104201484375], [101.073922148438, 26.8260353828125], [101.065152617188, 26.8172658515625], [101.077345, 26.813843]]]]
                    }
                },
                {
                    "type": "Feature",
                    "properties": {"name": "永胜县", "id": "530722"},
                    "geometry": {
                        "type": "MultiPolygon",
                        "coordinates": [[[[100.437345, 26.353843], [100.424537382813, 26.3588430000001], [100.437345, 26.3638430000001], [100.437345, 26.353843]]], [[[100.873922148438, 26.8460353828126], [100.877345, 26.833843], [100.865152617188, 26.8372658515626], [100.873922148438, 26.8460353828126]]], [[[100.567345, 26.9338430000001], [100.572906523438, 26.9468410468751], [100.590069609375, 26.9378493476563], [100.567345, 26.9338430000001]]], [[[100.607345, 26.9738430000001], [100.595152617188, 26.9772658515625], [100.603922148438, 26.9860353828125], [100.607345, 26.9738430000001]]], [[[100.567345, 26.9338430000001], [100.576156035156, 26.9200783515626], [100.615885039063, 26.9312429023438], [100.61093875, 26.948843], [100.613817167969, 26.9590822578125], [100.607345, 26.9738430000001], [100.612806425781, 26.9783815742188], [100.627257109375, 26.99577659375], [100.670677519531, 27.0002028632813], [100.673053007813, 26.9768923164063], [100.643240996094, 26.9521291328126], [100.673038359375, 26.9392043281251], [100.65584109375, 26.8776930976563], [100.687730742188, 26.8393019843751], [100.732899199219, 26.8292848945313], [100.730023222656, 26.8010597968751], [100.78693484375, 26.7651955390625], [100.802806425781, 26.7783815742188], [100.814854765625, 26.806157453125], [100.877977324219, 26.8238063789063], [100.903782988281, 26.7879494453126], [100.901803007813, 26.7685207343751], [100.915128203125, 26.7452516914063], [100.888270292969, 26.7129177070313], [100.864298125, 26.6930055976563], [100.859874296875, 26.6496047187501], [100.872445097656, 26.6483229804688], [100.951883574219, 26.6608864570313], [100.941329375, 26.6347170234375], [100.912806425781, 26.6183815742188], [100.882806425781, 26.6053688789063], [100.902244902344, 26.5880568671875], [100.921883574219, 26.5993044257813], [100.987345, 26.603843], [101.024014921875, 26.550512921875], [101.07388796875, 26.5362526679687], [101.070863066406, 26.5119362617188], [101.087913847656, 26.4906447578125], [101.154388457031, 26.45026878125], [101.150863066406, 26.4219362617188], [101.166239042969, 26.4027370429688], [101.182899199219, 26.3893971992188], [101.187345, 26.3638430000001], [101.175614042969, 26.3486452460938], [101.12170046875, 26.33948753125], [101.093631621094, 26.3225563789063], [101.06170046875, 26.3094875312501], [101.01298953125, 26.2681984687501], [100.976666289063, 26.2464748359375], [100.93377078125, 26.2133669257813], [100.907345, 26.163843], [100.8802746875, 26.1543556953125], [100.852535429688, 26.1690334296876], [100.832154570313, 26.1786525703126], [100.821063261719, 26.2021559882813], [100.782496367188, 26.1886379218751], [100.772166777344, 26.189048078125], [100.752916289063, 26.1682717109375], [100.674991484375, 26.1314943671876], [100.642535429688, 26.0853615546875], [100.662623320313, 26.0086940742188], [100.640633574219, 25.99831565625], [100.612345, 25.999438703125], [100.572877226563, 25.9978737617188], [100.5494934375, 26.023110578125], [100.487345, 26.013843], [100.480172148438, 26.08679221875], [100.483148222656, 26.123843], [100.481849394531, 26.1400075507813], [100.431136503906, 26.13593284375], [100.41271609375, 26.1812404609376], [100.443951445313, 26.208149640625], [100.431917753906, 26.2185182929687], [100.432769804688, 26.2291213203125], [100.413331328125, 26.2639601875], [100.401495390625, 26.3032717109376], [100.402840605469, 26.3200075507813], [100.42658328125, 26.3181008125], [100.437345, 26.353843], [100.450152617188, 26.3588430000001], [100.437345, 26.3638430000001], [100.45232546875, 26.4007106757813], [100.501607695313, 26.3945803046875], [100.479823027344, 26.4316384101562], [100.442303496094, 26.4269728828125], [100.422899199219, 26.4768532539063], [100.463455839844, 26.4884499335938], [100.451790800781, 26.5082888007813], [100.442515898438, 26.5407302070313], [100.418267851563, 26.5377150703125], [100.397345, 26.563843], [100.407366972656, 26.5718679023438], [100.428133574219, 26.6071950507813], [100.401666289063, 26.6283888984375], [100.403861113281, 26.6460256171876], [100.391695585938, 26.6886257148438], [100.39373171875, 26.7049831367188], [100.379039335938, 26.7828908515625], [100.445089140625, 26.8017751289063], [100.441722441406, 26.8288454414063], [100.455601835938, 26.9399294257813], [100.436886015625, 27.0054689765625], [100.459859648438, 27.0238649726563], [100.462967558594, 27.0488430000001], [100.461663847656, 27.0593239570313], [100.487345, 27.073843], [100.49170046875, 27.0681984687501], [100.524266386719, 27.0487233710938], [100.501522246094, 27.0394142890625], [100.503148222656, 27.0284133125], [100.475833769531, 26.9915724921875], [100.522135039063, 26.9780739570313], [100.56170046875, 26.983921125], [100.55298953125, 26.96819846875], [100.528663359375, 26.9494240546875], [100.567345, 26.9338430000001]]]]
                    }
                },
                {
                    "type": "Feature",
                    "properties": {"name": "玉龙纳西族自治县", "id": "530721"},
                    "geometry": {
                        "type": "MultiPolygon",
                        "coordinates": [[[[99.5539221484376, 26.8460353828126], [99.5573450000001, 26.833843], [99.5451526171876, 26.8372658515626], [99.5539221484376, 26.8460353828126]]], [[[100.363922148438, 27.0660353828126], [100.367345, 27.0538430000001], [100.355152617188, 27.0572658515625], [100.363922148438, 27.0660353828126]]], [[[100.413699980469, 27.724731671875], [100.407142363281, 27.6720143867188], [100.422899199219, 27.6593971992188], [100.431790800781, 27.6382888007812], [100.444334746094, 27.628247296875], [100.453001738281, 27.558559796875], [100.427498808594, 27.4922096992188], [100.458331328125, 27.4190383125], [100.525303984375, 27.4045485664063], [100.505577421875, 27.3532302070313], [100.521790800781, 27.2782888007813], [100.5383996875, 27.2350807929688], [100.519932890625, 27.191255109375], [100.491790800781, 27.1793971992188], [100.472899199219, 27.1682888007813], [100.447345, 27.1638430000001], [100.442159453125, 27.1819802070313], [100.407098417969, 27.2100563789063], [100.392345, 27.2082204414063], [100.382127714844, 27.2094924140626], [100.340628691406, 27.197641828125], [100.343587675781, 27.173843], [100.340479765625, 27.148843], [100.349600859375, 27.07550315625], [100.335538359375, 27.0393971992188], [100.320008574219, 27.076255109375], [100.292767363281, 27.0882888007813], [100.282899199219, 26.9982888007813], [100.263914824219, 26.9318068671875], [100.173062773438, 26.9431081367188], [100.162899199219, 26.9134206367188], [100.188648710938, 26.869614484375], [100.212899199219, 26.8593971992188], [100.231790800781, 26.8482888007813], [100.252899199219, 26.8393971992188], [100.261790800781, 26.8002150703125], [100.211790800781, 26.7893971992187], [100.202899199219, 26.7582888007813], [100.15375125, 26.7284377265625], [100.101790800781, 26.7193971992188], [100.082542753906, 26.6737184882813], [100.077345, 26.643843], [100.043573027344, 26.638657453125], [100.053829375, 26.5979567695313], [100.037345, 26.5938430000001], [100.012479277344, 26.5847121406251], [99.9061340625001, 26.6440456367188], [99.8927160937502, 26.62847190625], [99.8571789843751, 26.61921409375], [99.7853186328126, 26.6456032539063], [99.7050085742189, 26.6236257148438], [99.6711535937502, 26.6776760078125], [99.6373450000001, 26.683843], [99.6259045703126, 26.6981301093751], [99.6017908007814, 26.7082888007813], [99.5884509570314, 26.7549489570312], [99.5698083789063, 26.8034499335938], [99.5729944140626, 26.8290602851563], [99.5510315234376, 26.9059694648438], [99.5088049609376, 26.9237624335937], [99.4973450000001, 26.963843], [99.4728991992189, 27.0093971992188], [99.4265613085939, 27.0673342109375], [99.4364172656251, 27.146577375], [99.4217908007814, 27.1582888007813], [99.3861902148438, 27.2169020820313], [99.4131555468751, 27.2384963203125], [99.3968860156252, 27.2954689765626], [99.4128991992189, 27.3082888007813], [99.4383288867189, 27.3501589179688], [99.4217908007814, 27.3782888007813], [99.4095276171876, 27.42118675], [99.4135876757814, 27.453843], [99.4104455859376, 27.4791042304688], [99.4894397265626, 27.4961965156251], [99.5017908007814, 27.5393971992188], [99.5328991992188, 27.5582888007813], [99.5373450000001, 27.573843], [99.5427160937501, 27.5692140937501], [99.5519739062501, 27.54847190625], [99.5634704882814, 27.5278615546875], [99.5605676562501, 27.4917116523438], [99.5812292773439, 27.4677272773438], [99.6027722460939, 27.4491677070312], [99.6006848437501, 27.4231813789063], [99.6266003710938, 27.3930983710938], [99.6517346484376, 27.3714455390625], [99.6534704882814, 27.3498244453126], [99.6394226367188, 27.3246437812501], [99.6712292773439, 27.2877272773438], [99.6927160937501, 27.26921409375], [99.7019739062501, 27.2584719062501], [99.7234607226564, 27.2399587226563], [99.7419739062502, 27.2184719062501], [99.7767932421876, 27.202934796875], [99.7927160937501, 27.18921409375], [99.8029773242189, 27.1662209296875], [99.8407092578126, 27.1337136054688], [99.8542883593751, 27.1032863593751], [99.8927160937502, 27.07921409375], [99.9019739062501, 27.05847190625], [99.9646228320314, 26.9701125312501], [99.9519177539063, 26.9591677070313], [99.9539514453127, 26.9338430000001], [99.9519201953126, 26.9085646796876], [99.9627698046876, 26.8891213203126], [99.9611706835939, 26.86921409375], [100.012991972656, 26.8914772773438], [100.038997832031, 26.9138820625], [100.05271609375, 26.93847190625], [100.06197390625, 26.97921409375], [100.073424101563, 27.0104006171876], [100.071541777344, 27.033843], [100.07408328125, 27.0654909492188], [100.05271609375, 27.123676984375], [100.062291289063, 27.1604323554688], [100.10271609375, 27.17847190625], [100.148397246094, 27.2375173164063], [100.17271609375, 27.2584719062501], [100.20197390625, 27.2992140937501], [100.24197390625, 27.3112575507813], [100.222882109375, 27.3689186835938], [100.21197390625, 27.38847190625], [100.201920195313, 27.4327175117188], [100.177428007813, 27.4766188789063], [100.195987578125, 27.5182106757813], [100.244276152344, 27.5598146796875], [100.241917753906, 27.5891677070313], [100.262877226563, 27.6072243476563], [100.261060820313, 27.6298146796875], [100.291734648438, 27.6562404609375], [100.293470488281, 27.6778615546875], [100.281766386719, 27.6988430000001], [100.29271609375, 27.7184719062501], [100.30197390625, 27.73921409375], [100.307345, 27.743843], [100.312769804688, 27.720122296875], [100.341217070313, 27.7302761054688], [100.352713652344, 27.76511253125], [100.377345, 27.753843], [100.413699980469, 27.724731671875]]]]
                    }
                }
            ]
        }
        echarts.registerMap('LJ', map);
        option = {
            legend: { //地图上面的点
                orient: 'vertical',
                left: 'left',
                data: ['丽江']
            },
            visualMap: {
                show: false,
                min: 0,
                max: 4000,
                left: 'left',
                top: 'bottom',
                text: ['高', '低'],
                calculable: false,
                orient: 'horizontal',
                inRange: {
                    color: ['#4398ff', '#006edd'],
                    symbolSize: [100, 4000]
                },
            },
            backgroundColor: '#fff',
            series: [{
                type: 'map',
                map: 'LJ',
                // zlevel: 0,
                color: "#f00",
                label: {
                    normal: {
                        show: true
                    }
                },
                itemStyle: {
                    normal: {
                        borderColor: '#f00',
                        color: "#fe0",
                        areaColor: "#f00"
                    }
                },
                data: [
                    {
                        name: '古城区',
                        value: 12200,
                        itemStyle: {
                            normal: {
                                areaColor: '#fdc'
                            }
                        }
                    },
                    {
                        name: '华坪县',
                        value: 1200
                    },
                    {
                        name: '宁蒗彝族自治县',
                        value: 2102
                    },
                    {
                        name: '永胜县',
                        value: 3132
                    },
                    {
                        name: '玉龙纳西族自治县',
                        value: 602
                    },
                ]
            }]
        };
        myChart.setOption(option);
    }
}
holidayDataAnalysis.init();

// 天气12气温
var weather1 = {
    init: function () {
        try {
            var that = this
            that.weatherBar()
        } catch (err) {
            console.log("<<<<<<<<<<<我要和太阳肩并肩>>>>>>>>>>>>>>>" + err)
        }
    },
    weatherBar: function () {
        var myChart = echarts.init(document.getElementById('weatherBar'));
        option = {
            title: {
                subtext: '单位：℃',
                subtextStyle: {
                    fontSize: '12',
                    color: '#252830'
                }
            },
            color: ['#5d95fc'],
            tooltip: {
                trigger: 'axis',
                axisPointer: {            // 坐标轴指示器，坐标轴触发有效
                    type: 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                }
            },
            grid: {
                top: '20%',
                right: '4%',
                bottom: '3%',
                left: '2%',
                containLabel: true
            },
            xAxis: [
                {
                    type: 'category',
                    data: temperatureHours, /*['10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00'],*/
                    axisTick: {
                        show: false
                    },
                    axisLine: {
                        show: false,
                    },
                    axisLabel: {
                        show: true,
                        textStyle: {
                            fontSize: '12',
                            color: '#252830'
                        }
                    },
                }
            ],
            yAxis: [
                {
                    type: 'value',
                    axisTick: {
                        show: false
                    },
                    axisLine: {
                        show: false
                    },
                    splitLine: {
                        lineStyle: {
                            color: '#efefef'
                        }
                    },
                    axisLabel: {
                        show: true,
                        textStyle: {
                            fontSize: '12',
                            color: '#252830'
                        }
                    },
                },
            ],
            series: [
                {
                    name: '',
                    type: 'bar',
                    barWidth: '30%',
                    itemStyle: {
                        normal: {
                            color: '#5D95FC',
                            barBorderRadius: [6, 6, 0, 0],
                        }
                    },
                    data: temperatureValues /*[10, 32, 20, 33, 39, 33, 22, 22, 22, 22, 22, 22]*/
                }
            ]
        };
        myChart.setOption(option);
    }
}

weather1.init();

var weatherLine = {
    init: function () {
        try {
            var that = this
            that.weatherLines()
        } catch (err) {
            console.log("<<<<<<<<<<<我要和太阳肩并肩>>>>>>>>>>>>>>>" + err);
        }
    },
    weatherLines: function () {
        var myChart = echarts.init(document.getElementById('weatherLines'));
        option = {
            title: {
                subtext: '单位：级',
                subtextStyle: {
                    fontSize: '12',
                    color: '#252830'
                }
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '20%',
                top: '20%',
                containLabel: true
            },
            xAxis: {
                type: 'category',
                data: ['10:00', '11.00', '12.00', '13.00', '14.00', '15.00'],
                axisTick: {       //x轴刻度线
                    "show": false
                },
                axisLine: {
                    'show': false
                },
                axisLabel: {
                    show: true,
                    textStyle: {
                        fontSize: '12',
                        color: '#252830'
                    }
                },
            },
            yAxis: {
                type: 'value',
                axisTick: {       //Y轴刻度线
                    "show": false
                },
                axisLine: {
                    'show': false
                },
                splitLine: {
                    lineStyle: {
                        color: '#efefef'
                    }
                },
                axisLabel: {
                    show: true,
                    textStyle: {
                        fontSize: '12',
                        color: '#252830'
                    }
                },
            },
            series: [{
                data: [2, 3, 5, 8, 4, 6],
                type: 'line',
                symbol: "none",
                itemStyle: {
                    normal: {
                        lineStyle: {
                            color: '#fbb224',
                            type: 'dashed'
                        }
                    }
                },
            }]
        };
        myChart.setOption(option);
    }
}
weatherLine.init();

//湿度
var wartersLine = {
    init: function () {
        var that = this
        try {

            that.wartersLines()

        } catch (err) {
            console.log("<<<<<<<<<<<我要和太阳肩并肩>>>>>>>>>>>>>>>" + err)
        }


        try {
            that.weatherLines1()
        } catch (err) {
            console.log("<<<<<<<<<<<我要和太阳肩并肩>>>>>>>>>>>>>>>" + err)
        }


        that.weatherDashboards()
    },
    wartersLines: function () {
        var myChart = echarts.init(document.getElementById('wartersLines'));
        option = {
            title: {
                subtext: '单位：mb',
                subtextStyle: {
                    color: '#000'
                }
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '20%',
                top: '18%',
                containLabel: true
            },
            xAxis: {
                type: 'category',
                data: umidityHours,
                axisTick: {       //x轴刻度线
                    "show": false
                },
                axisLine: {
                    'show': false
                },
                axisLabel: {
                    show: true,
                    textStyle: {
                        fontSize: '12',
                        color: '#252830'
                    }
                },
            },
            yAxis: {
                type: 'value',
                axisTick: {       //Y轴刻度线
                    "show": false
                },
                axisLine: {
                    'show': false
                },
                splitLine: {
                    lineStyle: {
                        color: '#efefef'
                    }
                },
                axisLabel: {
                    show: true,
                    textStyle: {
                        fontSize: '12',
                        color: '#252830'
                    }
                },
            },
            series: [{
                data: umidityValues, /*[2, 3, 5, 8, 4, 6]*/
                type: 'line',
                symbol: "none",
                itemStyle: {
                    normal: {
                        lineStyle: {
                            color: '#3c9ef9'
                        }
                    }
                },
            }]
        };
        myChart.setOption(option);
    },
    weatherLines1: function () {
        var myChart = echarts.init(document.getElementById('weatherLines1'));
        option = {
            title: {
                subtext: '单位：级',
                subtextStyle: {
                    color: '#000'
                }
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '20%',
                top: '20%',
                containLabel: true
            },
            xAxis: {
                type: 'category',
                data: windpowerHours, /*['10:00', '11.00', '12.00', '13.00', '14.00']*/
                axisTick: {       //x轴刻度线
                    "show": false
                },
                axisLine: {
                    'show': false
                },
                axisLabel: {
                    show: true,
                    textStyle: {
                        fontSize: '12',
                        color: '#252830'
                    }
                },
            },
            yAxis: {
                type: 'value',
                axisTick: {       //Y轴刻度线
                    "show": false
                },
                axisLine: {
                    'show': false
                },
                splitLine: {
                    lineStyle: {
                        color: '#efefef'
                    }
                },
                axisLabel: {
                    show: true,
                    textStyle: {
                        fontSize: '12',
                        color: '#252830'
                    }
                },
            },
            series: [{
                data: windpowerValues, /*[2, 3, 5, 8, 4, 6]*/
                type: 'line',
                symbol: "none",
                itemStyle: {
                    normal: {
                        lineStyle: {
                            color: '#3c9ef9'
                        }
                    }
                },
            }]
        };
        myChart.setOption(option);
    },
    weatherDashboards: function () {
        var myChart = echarts.init(document.getElementById('weatherDashboards'));
        var option = {
            legend: {     //配置legend，这里的data，要对应type为‘bar’的series数据项的‘name’名称，作为图例的说明
                // data: ['第一阶段', '第二阶段', '第三阶段', '第四阶段', '第五阶段', '第六阶段'],
                selectedMode: false,  //图例禁止点击
                itemWidth: 30,
                itemHeight: 8,
                textStyle: {
                    color: '#707070',
                    fontStyle: 'normal',
                    fontWeight: 'normal',
                    fontFamily: 'sans-serif',
                    fontSize: 12
                }
            },
            grid: {
                z: 1,    //grid作为柱状图的坐标系，其层级要和仪表图层级不同，同时隐藏
                show: false,
                left: '-30%',
                right: '4%',
                bottom: '3%',
                containLabel: true,
                splitLine: {
                    show: false    //隐藏分割线
                },
            },
            xAxis: [   //这里有很多的show，必须都设置成不显
                {
                    type: 'category',
                    data: [],
                    axisLine: {
                        show: false
                    },
                    splitLine: {
                        show: false
                    },
                    splitArea: {
                        interval: 'auto',
                        show: false
                    }
                }
            ],
            yAxis: [ //这里有很多的show，必须都设置成不显示
                {
                    type: 'value',
                    axisLine: {
                        show: false
                    },
                    splitLine: {
                        show: false
                    },
                }
            ],
            toolbox: {
                show: false,
            },
            series: [
                {
                    name: '',
                    type: 'gauge',
                    startAngle: 180,
                    endAngle: 0,
                    center: ["48%", "80%"], //整体的位置设置
                    z: 3,
                    min: 0,
                    max: 400,
                    splitNumber: 8,
                    radius: '150%',
                    axisLine: {            // 坐标轴线
                        lineStyle: {       // 属性lineStyle控制线条样式
                            width: 10,
                            color: [
                                [0.2, '#75e007'],
                                [0.4, pillarColor[1]],  //var color =['#ff473e','#fc7600','#fca400','#fec400','#fce300','#4c6ffc','#4b7efe','#4997fc','#4bdaac','#4ad970'];
                                [0.6, "#ef7204"],
                                [0.8, "#cf0074"],
                                [1, "#f80700"],
                            ],
                        }
                    },
                    axisTick: {            // 坐标轴小标记
                        length: 5,         // 属性length控制线长
                        splitNumber: 2,
                        lineStyle: {       // 属性lineStyle控制线条样式
                            color: '#cdcdcd'
                        }
                    },
                    splitLine: {           // 分隔线
                        length: 20,         // 属性length控制线长
                        lineStyle: {       // 属性lineStyle（详见lineStyle）控制线条样式
                            color: 'auto'
                        }
                    },
                    axisLabel: {
                        textStyle: {
                            color: '#454A57'
                        }
                    },
                    pointer: {
                        show: true,
                        length: '70%',
                        width: 5,
                    },
                    itemStyle: {
                        normal: {
                            color: '#75e007',//指针颜色
                            borderWidth: 0
                        }
                    },
                    title: {   //仪表盘标题
                        show: true,
                        offsetCenter: ['0', '20'],
                        textStyle: {
                            color: '#444A56',
                            fontSize: 12,
                            fontFamily: 'Microsoft YaHei'
                        }
                    },
                    detail: {
                        textStyle: {
                            fontSize: 12,
                            color: '#707070'
                        },
                        offsetCenter: ["0%", "-50%"],
                        formatter: function () {
                            // return '创作时间\n' + '2018-01-17';
                        }
                    },
                    data: airData,
                },
                {
                    name: '',
                    type: 'gauge',
                    z: 2,
                    radius: '100%',
                    startAngle: 180,
                    endAngle: 0,
                    center: ["50%", "80%"], //整体的位置设置
                    splitNumber: 4,
                    axisLine: { // 坐标轴线
                        lineStyle: { // 属性lineStyle控制线条样式
                            color: [
                                //  [1, '#ccc']
                            ],
                            width: 25,
                            opacity: 1,
                        }
                    },
                    splitLine: { //分隔线样式
                        show: false,
                    },
                    axisLabel: { //刻度标签
                        show: false,
                    },
                    axisTick: { //刻度样式
                        show: false,
                    },
                    detail: {
                        show: false,
                        textStyle: {       // 其余属性默认使用全局文本样式，详见TEXTSTYLE
                            fontWeight: 'bolder',
                            fontSize: 12
                        }
                    },
                },
                {
                    name: '',
                    type: 'bar',
                    barWidth: '60%',  //不显示，可以随便设置
                    data: [0],
                    itemStyle: {
                        normal: {
                            color: '#75e007',  //这里的图例要注意，颜色设置和仪表盘的颜色对应起来
                        }
                    }
                },
                {
                    name: '',
                    type: 'bar',
                    barWidth: '60%',
                    data: [0],
                    itemStyle: {
                        normal: {
                            color: '#ffcb00',
                        }
                    }
                },
                {
                    name: '',
                    type: 'bar',
                    barWidth: '60%',
                    data: [0],
                    itemStyle: {
                        normal: {
                            color: '#fe6c00',
                        }
                    }
                },
                {
                    name: '',
                    type: 'bar',
                    barWidth: '60%',
                    data: [0],
                    itemStyle: {
                        normal: {
                            color: '#fe0000',
                        }
                    }
                },
                {
                    name: '',
                    type: 'bar',
                    barWidth: '60%',
                    data: [0],
                    itemStyle: {
                        normal: {
                            color: '#c4086e',
                        }
                    }
                },
                {
                    name: '',
                    type: 'bar',
                    barWidth: '60%',  //不显示，可以随便设置
                    data: [0],
                    itemStyle: {
                        normal: {
                            color: 'pink',  //这里的图例要注意，颜色设置和仪表盘的颜色对应起来
                        }
                    }
                },
            ]
        }
        myChart.setOption(option);
    }


}
wartersLine.init();

